package com.example.demo.vo;

import java.util.List;

/**
 * <p>
 * </p>
 *
 * @package: com.tree
 * @class: TreeNode1
 * @date: 2018/3/27
 * @since 1.0
 */
public class TreeNode {

	private Integer id;
	private Integer pid;
	private String name;
	private List<TreeNode> children;

	public TreeNode(Integer id, Integer pid, String name) {
		this.id = id;
		this.pid = pid;
		this.name = name;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<TreeNode> getChildren() {
		return children;
	}

	public void setChildren(List<TreeNode> children) {
		this.children = children;
	}

}
